//lcm 
#include <iostream>
#define ll long long

using namespace std;

ll gcd(ll a,ll b){
	return b == 0 ? a : gcd(b,a % b);
}

ll lcm(ll a , ll b){
	return a / gcd(a,b) * b;
}

int main(){

	ll a,b,c;
	cin >> a >> b >> c;
	cout << lcm(lcm(a,b),c);

	return 0;
}

